//
//  PPNavBarPreview.m
//  pickpic
//
//  Created by 胡文广 on 2017/4/16.
//  Copyright © 2017年 MicroDream. All rights reserved.
//

#import "PPNavBarPreview.h"

@implementation PPNavBarPreview

- (instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        
        self.topLabel = [[UILabel alloc] init];
        self.topLabel.textAlignment = NSTextAlignmentCenter;
        self.topLabel.textColor = BLACK;
        [self addSubview:self.topLabel];
        
        self.bottomLabel = [[UILabel alloc] init];
        self.bottomLabel.textAlignment = NSTextAlignmentCenter;
        self.bottomLabel.textColor = BLACK;
        [self addSubview:self.bottomLabel];
        
    }
    return self;
}


- (void)layoutSubviews{
    
    [super layoutSubviews];
    
    CGFloat height = self.frame.size.height*0.5;
    self.topLabel.frame = CGRectMake(0, 0,self.frame.size.width,height);
    self.bottomLabel.frame = CGRectMake(0,height,self.frame.size.width,height);
}
@end
